﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请用户输入要狗还是鱼？");

            string animals = Console.ReadLine();
            if (animals == "狗")
            {
                Console.WriteLine("狗的颜色;");
                Console.ReadLine();
                Console.WriteLine("狗的名字:");
                Console.ReadLine();
                Animal dog = new Dog();
                dog.Move();
            }

            if (animals == "鱼")
            {
                Console.WriteLine("鱼的颜色;");
                Console.ReadLine();
                Console.WriteLine("鱼的名字;");
                Console.ReadLine();
                Animal
                    fish = new Fish();
                    fish.Move();
            }
            Console.ReadKey();
        }
        
    }
}
